package file;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25397
 * Date: 2022-04-10
 * Time: 21:03
 */
public class Demo3 {
    public static void main(String[] args) throws IOException {
        //文件的创建与删除
        File f=new File("./test.txt");
        System.out.println(f.exists());

        System.out.println("创建文件开始");
        f.createNewFile();
        System.out.println("创建文件结束");

        System.out.println(f.exists());
    }
}
